import { Module } from '@nestjs/common';
import { ServeStaticModule } from '@nestjs/serve-static';
import { MongooseModule } from '@nestjs/mongoose';
import { join } from 'path';
import { EpgModule } from './lib/epg/epg.module';

@Module({
  imports: [
    MongooseModule.forRoot('mongodb://ucms:ucms123@10.10.8.12:23000/ucms'),
    ServeStaticModule.forRoot({
      rootPath: join(__dirname, '..', 'client'),
    }),
    EpgModule,
  ],
})
export class AppModule {}
